<template>
	<gui-page :customHeader="true" isHeaderSized headerClass="gui-bg-primary">
		<template v-slot:gHeader>
			<view class="gui-margin">
				<!-- <gui-search @inputting="inputting" @confirm="confirm" placeholder="请输入公司名称/手机号"></gui-search> -->
				<!-- <text class="gui-grid-item gui-primary-color">工作台</text> -->
			</view>
		</template>
		<!-- 请开始您的开发 ~ -->
		<template v-slot:gBody>

			<view class="gui-padding">


				<view class="item_box gui-padding gui-bg-white gui-border-radius" v-for="(item,index) in manageList" :key="index" style="margin-bottom: 30rpx;">
					<view class="bt gui-bold gui-h4 gui-color-black">
						{{item.name}}
					</view>



					<view class="gui-grid gui-bg-white gui-dark-bg-level-3  gui-margin-top gui-space-around" style="">
						<view v-for="(obj, idx) in item.arr" :key="idx" class="gui-grid-item grid4" @click="goTo(obj.url)" style="margin-top: 20rpx;">
							<image mode="aspectFill" class="gui-grid-icon-img" :src="obj.img"></image>
							<text class="gui-grid-text gui-primary-text">{{obj.name}}</text>
						</view>
					</view>



				</view>

				 
			</view>



		</template>
	</gui-page>
</template>
<script>
	import index from "@/api/index.js"
	export default {
		data() {
			return {
				manageList:[{
							name: '客户管理',
							arr: [
								{ name: '我的客户', img: '../../static/crm/kehu1.png', url: '../crm/index', menu_id: 'client' },
								{ name: '待跟进客户', img: '../../static/crm/hkjh.png', url: './kehu/kehuGh', menu_id: 'clientGh' },
								{ name: '公海客户', img: '../../static/crm/gonghaichi1.png', url: './thread/threadc', menu_id: 'threadC' },
								{ name: '线索池', img: '../../static/crm/thread.png', url: './thread/thread', menu_id: 'thread' },
								{ name: '新增客户', img: '../../static/crm/fkIcon.png', url: '../../qywxPage/view/qywxClient/qywxClient', menu_id: 'qywxClient' },
								{ name: '跟进记录', img: '../../static/tabbar/msgA.png', url: './genJin/genJin', menu_id: 'followUp' },
								{ name: '流量客户', img: '../../static/crm/xiansuo.png', url: './genJin/genJin?isQywx=true', menu_id: 'followUpQywx' },
								{ name: '所有客户', img: '../../static/crm/lianxiren.png', url: './lianxiren/lianxiren', menu_id: 'linkman' },
							]
						},
						{
							name: '业务管理',
							arr: [
								// { name: '快审', img: '../../static/crm/shangji.png', url: './shangji/shangji', menu_id: 'business' },
								{ name: '预审', img: '../../static/crm/genjin.png', url: './shangji/shangji?isQywx=true', menu_id: 'businessQywx' },
								{ name: '进件', img: '../../static/crm/zizhi.png', url: './baoJiaDan/baoJiaDan', menu_id: 'quotation' },
								{ name: '审批', img: '../../static/crm/hetong.png', url: './baoJiaDan/baoJiaDan?isQywx=true', menu_id: 'quotationQywx' },
								// { name: '退回', img: '../../static/crm/tuihuotuikuan.png', url: './hetong/hetong', menu_id: 'contract' },
								{ name: '签约', img: '../../static/crm/baojiadan.png', url: './hetong/hetong?isQywx=true', menu_id: 'contractQywx' },
							]
						}]
				}
		},
		onLoad: function() {

		},
		methods: {
			init() {

			},
			goYusheng() {
				this.$refs.yusheng.open();
			},
			goTo(url){
				uni.navigateTo({
					url:url
				})
			}

		}
	}
</script>

<style lang="scss" scoped>

</style>